﻿using System;
using System.Collections.Generic;
using System.Text;

namespace time
{
    public class 金字塔
    {

        public static void GetJinzita(int count)
        {
            for (int i = count; i >0; i--)
            {
                for (int j = i - 1; j > 0; j--)
                {
                    Console.Write(" ");
                }

                for (int k = 0; k < count - i + 1;k++ )
                {
                    Console.Write("- ");
                }

                Console.Write("\n");
            }
        }
    }
}
